isEmpty() method
This method will allow you to check if the provided string is empty or not. If the string length is zero then the method will return true else the false value will be returned.
Method implementation-
Syntax-
Example-
Output-
This method will allow you to check if the provided string is empty or not. If the string length is zero then the method will return true else the false value will be returned.